import ReactDOM from 'react-dom'

const list = [
  { id: 1, name: '张三', money: 123 },
  { id: 2, name: '李四', money: 456 },
  { id: 3, name: '王五', money: 789 },
]

const element = <div>
  <ul>
    {list.map((item, index) => {
      return (
        <li key={index}>
          <h3>id:{item.id}</h3>
          <p>姓名:{item.name}</p>
          <p>工资:{item.money}</p>
        </li>
      )
    })}
  </ul>
</div>

ReactDOM.render(element, document.getElementById('root'))